home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Simple Slideshow / TIFF code folder / TIFF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-20  |  1.2 KB  |  49 lines  |  [TEXT/KAHL]

  1. /* *****************************************************************************
  2.     FILE:             TIFF.h
  3.     
  4.     DESCRIPTION:     prototypes for routines in TIFF.c
  5.  
  6.    ***************************************************************************** */
  7.  
  8.  
  9. #ifndef _TIFF_
  10. #define _TIFF_
  11.  
  12.  
  13. //#include "Structs.h"
  14. #include "tiffinfo.h"
  15. #include <QDOffscreen.h>
  16. #include <Files.h>
  17.  
  18.  
  19. typedef struct thunk
  20. {
  21.     TIFFPtr         ti;
  22.     short             ref;         // keep the file open
  23.     Boolean         active;
  24.     short             depth;         // desired off-screen depth, or 0 for none
  25.     Boolean         dither;
  26.     Boolean         customPalette;
  27.     Boolean         customMethod;
  28. } TIFF_Rec, **TIFF_RecHdl;
  29.  
  30.  
  31. GWorldPtr             ReadTIFF                ( FSSpec *spec, short forImage, OSErr *theError, Rect *bounds );
  32. void                 DisposeThunk            ( TIFF_RecHdl th );
  33. void                 InitPalette                ( void );
  34. short                 DeepestCLUTScreen        ( void );
  35. short                 DepthToSize                ( short depth );
  36. short                 FixDepth                ( short depth );
  37.  
  38. // below here are the additional botches I added to compile the thing
  39.  
  40. #define        THUMB_SIZE        128
  41.  
  42. extern    GWorldPtr    display_image_GW;
  43. extern    WindowPtr    display_window;
  44.  
  45.  
  46. double     CalculateThumbNailSize( double old_wide, double old_high, Rect *new_size );
  47. OSErr    ConvertTIFFToPICT(FSSpec *theFile,PicHandle *thePicture);
  48.  
  49. #endif